package device.input;

import java.util.ArrayList;
import java.util.HashMap;

import type.data.StackStruct;
import android.text.method.Touch;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

/**
 * タッチイベント
 *
 * @author function
 */
public class TouchEvent implements OnTouchListener
{

	/**
	 * タッチイベント
	 *
	 * @param v　　 ビュー
	 * @param event タッチイベント
	 * @return
	 */
	@Override
	public boolean onTouch(View v, MotionEvent event)
	{
		//
		int id = ( event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK ) >> MotionEvent.ACTION_POINTER_ID_SHIFT;
		int action = event.getAction() & MotionEvent.ACTION_MASK;




		// ACTION_MOVE以外の時
		TouchData touchData = new TouchData();
		touchData.m_touchX = event.getX();
		touchData.m_touchY = event.getY();
		touchData.m_action = action % 5;

		return true;
	}


}